import Vue from 'vue'
import Vuex from 'vuex'
import setting from "@/store/modules/setting";
import user from "@/store/modules/user";
import getters from '@/store/getters'
import student from "@/store/modules/student";
import VueXAlong from 'vuex-along'

Vue.use(Vuex)

export default new Vuex.Store({
    modules: {
        setting,
        user,
        student
    },
    getters,
    plugins: [VueXAlong({
        name: 'along',     //存放在localStroage或者sessionStroage 中的名字
        session: {
            list: [],
            isFilter: true
        },// list 数组中的值就会被过滤调,这些值不会存放在seesion或者local中
        justSession: true
    })]
})
